package com.abc.robot01.vivemodel

import android.util.Log
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.abc.robot01.retrofit.RetrofitService
import com.abc.robot01.retrofit.bean.DataItem
import com.abc.robot01.retrofit.bean.LocalConfig
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch

open class BaseViewModel : ViewModel() {
   val  isDialogVisible =  mutableStateOf(false)
   val  noticeName =  mutableStateOf("")
   val  noticeTime =  mutableStateOf("")
   val  dataId9 =  mutableStateOf("")
   val  thumbnail9 =  mutableStateOf("")
   val  pageUrl9 =  mutableStateOf("")



   private val _toastMessage = MutableLiveData<String>()
   val toastMessage: LiveData<String> = _toastMessage

   fun showToast(message: String) {
      _toastMessage.postValue( message)
   }



}
